<div class="animated fadeInRight ecommerce">
    <div class="row">
        <div class="col-lg-12">
            <div class="ibox">
                <div class="ibox-title">
                    <h5><span><vc:i18n name="访客已办单" namespace="visitFinish"></vc:i18n></span></h5>
                    <div class="ibox-tools" style="top:10px;">
                        <button type="button" class="btn btn-white btn-sm" v-on:click="vc.goBack()">
                            <vc:i18n name="返回" namespace="visitFinish"></vc:i18n>
                        </button>
                        <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryFinishOrdersMethod()">
                                <vc:i18n name="刷新" namespace="visitFinish"></vc:i18n>
                        </button>
                    </div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <span><vc:i18n name="访客ID" namespace="visitFinish"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="访客" namespace="visitFinish"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="业主姓名" namespace="visitFinish"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="来访事由/类型" namespace="visitFinish"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="车牌号" namespace="visitFinish"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="随行人数" namespace="visitFinish"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="创建时间" namespace="visitFinish"></vc:i18n></span>
                                </th>
                                <th class="text-center">
                                    <span><vc:i18n name="来访/离开时间" namespace="visitFinish"></vc:i18n></span>
                                </th>
                               
                                <th class="text-center">
                                    <span><vc:i18n name="状态" namespace="visitFinish"></vc:i18n></span>
                                </th>
                                <th class="text-center"><span><vc:i18n name="操作" namespace="visitFinish"></vc:i18n></span></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="finish in visitFinishInfo.finishs">
                                <td class="text-center">{{finish.vId}}</td>
                            <td class="text-center">{{finish.vName}}({{finish.phoneNumber}})/{{finish.visitGender=='0'?'男':'女'}}</td>
                            <td class="text-center">{{finish.ownerName}}</td>
                            <td class="text-center">{{finish.visitCase}}({{finish.reasonType == 0 ? '喜事' :
                                finish.reasonType == 1 ? '白事' : finish.reasonType == 2 ? '其他' : '-'}})
                            </td>
                            <td class="text-center">{{finish.carNum}}</td>
                            <td class="text-center">{{finish.entourage}}</td>
                            <td class="text-center">{{finish.createTime}}</td>
                            <td class="text-center">{{finish.visitTime}}<br/>{{finish.departureTime}}</td>
                            <td class="text-center">{{finish.stateName}}</td>
                                <td class="text-center">
                                    <div class="btn-group">
                                        <button class="btn-white btn btn-xs"
                                            v-on:click="_openDetail(finish)"><span><vc:i18n name="详情" namespace="visitFinish"></vc:i18n></span>
                                        </button>
                                    </div>
                                </td>
                            </tr>
                        </tbody>
                        <tfoot>
                            <tr>
                                <td colspan="7">
                                    <ul class="pagination float-right"></ul>
                                </td>
                            </tr>
                        </tfoot>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
</div>
